home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0198 / AMOSLIST / text0166.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  2.1 KB  |  49 lines

  1. On 29-Jan-98, Alastair Murray smashed the keyboard with:
  2. >> On blizz1230/50 with fpu, AMOS has often crashes. I used several days to
  3. >> try and find the bug, so that I could avoid it..
  4. >> 
  5. >> Problem is:
  6. >> -A fast moving loop with an 'inkey$' inside, something like:
  7. >> Do
  8. >>  w$=Inkey$
  9. >>  if.....
  10. >>  else if...
  11. >>  else if...
  12. >>  endif
  13. >> Loop
  14. >> (As long as the user don't push a key the loop keeps running around)
  15. >> After some time the loop begins to be unstable (strange chars might be
  16. >> written, some lines appears on WB) and the Amiga Crashes.. This takes
  17. >> around 3 seconds to happen..
  18. >> 
  19. >> The solution is to put a 'Multi Wait' into the loop, this also has the
  20. >> advantage of giving some CPU-power to other programs while yours is
  21. >> awaiting the user to do something. I expect a similar fix would be to
  22. >> put 'wait vbl' inside the loop, but I've never tried..
  23.  
  24. >ahhhh.
  25. >Well actually, I'm using a blizz1230/50 with fpu with no problems but
  26. >as I've said before alot of people have troubles running some of my
  27. >programs. That sounds like it may help. I'll give it a go.
  28.  
  29. I've done some experiments, and it appears that the loop gets unstable
  30. when it's runing VERY fast. So the crashes is seen more often if AMOS
  31. is running from a clean WB (No Opus or other things running). As soon
  32. as something else is running the chance of crash drops..
  33.  
  34. -- 
  35. Happy greetings, Yours..
  36. __________________________________________________________________________
  37.  /_  __/ __  / __  /\  ___\  __ \__  _\           aka. JENS VANG PETERSEN
  38.   / / / /_/ / ____/  \ \___\  __ \ \ \              top_cat@post8.tele.dk
  39.  /_/ /_____/_/        \_____\_\ \_\ \_\
  40. --------------------------------------------------------------------------
  41.                      http://home8.inet.tele.dk/top_cat/
  42.   -*-  Home of 'The Ultimate Extension list' for AMOS TC & AMOS PRO  -*-
  43.                   -*-  SUPPORT - AMOS - AMIGA - AQUA  -*-
  44. --------------------------------------------------------------------------
  45.  I haven't lost my mind; it's backed up on tape somewhere.
  46. --------------------------------------------------------------------------
  47.  
  48.  
  49.